package com.aidex.baseinfo.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.aidex.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 仓库信息对象 base_warehouse
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-21
 */
@Data
public class BaseWarehouse extends BaseEntity<BaseWarehouse>
{
    private static final long serialVersionUID = 1L;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    @NotBlank(message = "仓库名称不允许为空")
    @LogField
    @FieldRemark(name = "仓库名称",field = "name")
    private String name;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    @NotBlank(message = "仓库地址不允许为空")
    @LogField
    @FieldRemark(name = "仓库地址",field = "address")
    private String address;

    /** 面积 */
    @Excel(name = "面积")
    @NotBlank(message = "面积不允许为空")
    @LogField
    @FieldRemark(name = "面积",field = "area")
    private String area;

    /** 所在地区 */
    @Excel(name = "所在地区", dictType = "goods_type")
    @NotBlank(message = "所在地区不允许为空")
    @LogField
    @FieldRemark(name = "所在地区",field = "areaname")
    private String areaname;

    /** 地区编码 */
    private String areacode;

    /** 联系人 */
    @Excel(name = "联系人")
    @NotBlank(message = "联系人不允许为空")
    @LogField
    @FieldRemark(name = "联系人",field = "contact")
    private String contact;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @NotBlank(message = "联系方式不允许为空")
    @LogField
    @FieldRemark(name = "联系方式",field = "telephone")
    private String telephone;

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }

    public void setAreaname(String areaname) 
    {
        this.areaname = areaname;
    }

    public String getAreaname() 
    {
        return areaname;
    }

    public void setAreacode(String areacode) 
    {
        this.areacode = areacode;
    }

    public String getAreacode() 
    {
        return areacode;
    }

    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }

    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("address", getAddress())
            .append("area", getArea())
            .append("areaname", getAreaname())
            .append("areacode", getAreacode())
            .append("contact", getContact())
            .append("telephone", getTelephone())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
